package com.chain;

/**
 * @author zhangyan
 * @version $ Id: Main.java, v 0.1 2021/6/30 23:23 zhangyan Exp $
 */
public class Main {

    /**
     * https://blog.csdn.net/u012810020/article/details/71194853
     *
     * @param args
     */
    public static void main(String[] args) {

        Request request = new Request.Builder().setName("张三").setDays(5)
                .setReason("事假").build();
        ChainOfResponsibilityClient client = new ChainOfResponsibilityClient();
        Result result = client.execute(request);

        System.out.println("结果：" + result.toString());
    }
}
